home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / CodeWarrior Lite / Metrowerks C⁄C++ Lite / Headers / Universal Headers 2.0.1f / ASDebugging.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-22  |  6.0 KB  |  154 lines  |  [TEXT/MMCC]

  1. /*
  2.      File:        ASDebugging.h
  3.  
  4.      Contains:    AppleScript Debugging Interfaces.
  5.  
  6.      Version:    Technology:    AppleScript 1.1
  7.                  Package:    Universal Interfaces 2.0 in “MPW Latest” on ETO #17
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. */
  19.  
  20. #ifndef __ASDEBUGGING__
  21. #define __ASDEBUGGING__
  22.  
  23.  
  24. #ifndef __APPLEEVENTS__
  25. #include <AppleEvents.h>
  26. #endif
  27. /*    #include <Errors.h>                                            */
  28. /*        #include <ConditionalMacros.h>                            */
  29. /*    #include <Types.h>                                            */
  30. /*    #include <Memory.h>                                            */
  31. /*        #include <MixedMode.h>                                    */
  32. /*    #include <OSUtils.h>                                        */
  33. /*    #include <Events.h>                                            */
  34. /*        #include <Quickdraw.h>                                    */
  35. /*            #include <QuickdrawText.h>                            */
  36. /*    #include <EPPC.h>                                            */
  37. /*        #include <AppleTalk.h>                                    */
  38. /*        #include <Files.h>                                        */
  39. /*        #include <PPCToolbox.h>                                    */
  40. /*        #include <Processes.h>                                    */
  41. /*    #include <Notification.h>                                    */
  42.  
  43. #ifndef __APPLESCRIPT__
  44. #include <AppleScript.h>
  45. #endif
  46. /*    #include <OSA.h>                                            */
  47. /*        #include <AEObjects.h>                                    */
  48. /*        #include <Components.h>                                    */
  49. /*    #include <TextEdit.h>                                        */
  50.  
  51. #ifdef __cplusplus
  52. extern "C" {
  53. #endif
  54.  
  55. #if PRAGMA_ALIGN_SUPPORTED
  56. #pragma options align=mac68k
  57. #endif
  58.  
  59. #if PRAGMA_IMPORT_SUPPORTED
  60. #pragma import on
  61. #endif
  62.  
  63.  
  64. enum {
  65. /*     This mode flag can be passed to OSASetProperty or OSASetHandler
  66.         and will prevent properties or handlers from being defined in a context
  67.         that doesn't already have bindings for them. An error is returned if
  68.         a current binding doesn't already exist. */
  69.     kOSAModeDontDefine            = 0x0001
  70. };
  71.  
  72. /**************************************************************************
  73.     Component Selectors
  74. **************************************************************************/
  75. enum {
  76.     kASSelectSetPropertyObsolete = 0x1101,
  77.     kASSelectGetPropertyObsolete = 0x1101,
  78.     kASSelectSetHandlerObsolete    = 0x1103,
  79.     kASSelectGetHandlerObsolete    = 0x1104,
  80.     kASSelectGetAppTerminologyObsolete = 0x1105,
  81.     kASSelectSetProperty        = 0x1106,
  82.     kASSelectGetProperty        = 0x1107,
  83.     kASSelectSetHandler            = 0x1108,
  84.     kASSelectGetHandler            = 0x1109,
  85.     kASSelectGetAppTerminology    = 0x110A,
  86.     kASSelectGetSysTerminology    = 0x110B,
  87.     kASSelectGetPropertyNames    = 0x110C,
  88.     kASSelectGetHandlerNames    = 0x110D
  89. };
  90.  
  91. /**************************************************************************
  92.     Context Accessors
  93. **************************************************************************/
  94. extern pascal OSAError OSASetProperty(ComponentInstance scriptingComponent, long modeFlags, OSAID contextID, const AEDesc *variableName, OSAID scriptValueID)
  95.  FIVEWORDINLINE(0x2F3C, 16, 0x1106, 0x7000, 0xA82A);
  96. extern pascal OSAError OSAGetProperty(ComponentInstance scriptingComponent, long modeFlags, OSAID contextID, const AEDesc *variableName, OSAID *resultingScriptValueID)
  97.  FIVEWORDINLINE(0x2F3C, 16, 0x1107, 0x7000, 0xA82A);
  98. extern pascal OSAError OSAGetPropertyNames(ComponentInstance scriptingComponent, long modeFlags, OSAID contextID, AEDescList *resultingPropertyNames)
  99.  FIVEWORDINLINE(0x2F3C, 12, 0x110C, 0x7000, 0xA82A);
  100. extern pascal OSAError OSASetHandler(ComponentInstance scriptingComponent, long modeFlags, OSAID contextID, const AEDesc *handlerName, OSAID compiledScriptID)
  101.  FIVEWORDINLINE(0x2F3C, 16, 0x1108, 0x7000, 0xA82A);
  102. extern pascal OSAError OSAGetHandler(ComponentInstance scriptingComponent, long modeFlags, OSAID contextID, const AEDesc *handlerName, OSAID *resultingCompiledScriptID)
  103.  FIVEWORDINLINE(0x2F3C, 16, 0x1109, 0x7000, 0xA82A);
  104. extern pascal OSAError OSAGetHandlerNames(ComponentInstance scriptingComponent, long modeFlags, OSAID contextID, AEDescList *resultingHandlerNames)
  105.  FIVEWORDINLINE(0x2F3C, 12, 0x110D, 0x7000, 0xA82A);
  106. extern pascal OSAError OSAGetAppTerminology(ComponentInstance scriptingComponent, long modeFlags, FSSpec *fileSpec, short terminologyID, Boolean *didLaunch, AEDesc *terminologyList)
  107.  FIVEWORDINLINE(0x2F3C, 18, 0x110A, 0x7000, 0xA82A);
  108. /* Errors:
  109.        errOSASystemError        operation failed
  110.     */
  111. extern pascal OSAError OSAGetSysTerminology(ComponentInstance scriptingComponent, long modeFlags, short terminologyID, AEDesc *terminologyList)
  112.  FIVEWORDINLINE(0x2F3C, 10, 0x110B, 0x7000, 0xA82A);
  113. /* Errors:
  114.        errOSASystemError        operation failed
  115.     */
  116. /* Notes on terminology ID
  117.  
  118.     A terminology ID is derived from script code and language code
  119.     as follows;
  120.  
  121.         terminologyID = ((scriptCode & 0x7F) << 8) | (langCode & 0xFF)
  122. */
  123. /**************************************************************************
  124.     Obsolete versions provided for backward compatibility:
  125. */
  126. extern pascal OSAError ASSetProperty(ComponentInstance scriptingComponent, OSAID contextID, const AEDesc *variableName, OSAID scriptValueID)
  127.  FIVEWORDINLINE(0x2F3C, 12, 0x1101, 0x7000, 0xA82A);
  128. extern pascal OSAError ASGetProperty(ComponentInstance scriptingComponent, OSAID contextID, const AEDesc *variableName, OSAID *resultingScriptValueID)
  129.  FIVEWORDINLINE(0x2F3C, 12, 0x1101, 0x7000, 0xA82A);
  130. extern pascal OSAError ASSetHandler(ComponentInstance scriptingComponent, OSAID contextID, const AEDesc *handlerName, OSAID compiledScriptID)
  131.  FIVEWORDINLINE(0x2F3C, 12, 0x1103, 0x7000, 0xA82A);
  132. extern pascal OSAError ASGetHandler(ComponentInstance scriptingComponent, OSAID contextID, const AEDesc *handlerName, OSAID *resultingCompiledScriptID)
  133.  FIVEWORDINLINE(0x2F3C, 12, 0x1104, 0x7000, 0xA82A);
  134. extern pascal OSAError ASGetAppTerminology(ComponentInstance scriptingComponent, FSSpec *fileSpec, short terminologID, Boolean *didLaunch, AEDesc *terminologyList)
  135.  FIVEWORDINLINE(0x2F3C, 14, 0x1105, 0x7000, 0xA82A);
  136. /* Errors:
  137.         errOSASystemError        operation failed
  138.     */
  139. /**************************************************************************/
  140.  
  141. #if PRAGMA_IMPORT_SUPPORTED
  142. #pragma import off
  143. #endif
  144.  
  145. #if PRAGMA_ALIGN_SUPPORTED
  146. #pragma options align=reset
  147. #endif
  148.  
  149. #ifdef __cplusplus
  150. }
  151. #endif
  152.  
  153. #endif /* __ASDEBUGGING__ */
  154.